<?php

    $file=$_POST['file'];
    $zipfile =  $file['dirname'].'/'.$file['basename'];
	$toDir = $file['dirname'];

	
$zip = new ZipArchive;
if ($zip->open($zipfile) === TRUE) {
	$address=__DIR__;
    $zip->extractTo($toDir);
    $zip->close();
    echo 'ok';
} else {
    echo 'failed';
}

?>